Skip to content

Save cache at end of vcpkg-action instead of end of the job#56

Merged
johnwason merged 2 commits into
masterfrom
early_save_cache
May 4, 2026
Merged

Save cache at end of vcpkg-action instead of end of the job#56
johnwason merged 2 commits into
masterfrom
early_save_cache

Conversation

@johnwason

Copy link
Copy Markdown
Owner

Before this PR the actions/cache action was used with combined restore and save. This resulted in the cache being saved at the end of the job. If the job failed in a later step after vcpkg-action, the cache was not saved. This PR uses actions/cache/save at the end of the action to save immediately after the vcpkg build step. This change will save the vcpkg cache even if later steps in the overall job fail.

@johnwason johnwason merged commit 276fce9 into master May 4, 2026
18 checks passed
@johnwason johnwason deleted the early_save_cache branch May 4, 2026 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant